load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "testgen_lib",
    srcs = [
        "main.go",
        "templates.go",
    ],
    importpath = "github.com/cockroachdb/cockroach/pkg/ccl/backupccl/testgen",
    visibility = ["//visibility:private"],
    deps = [
        "//pkg/build/bazel",
        "@com_github_cockroachdb_errors//:errors",
    ],
)

go_binary(
    name = "testgen",
    embed = [":testgen_lib"],
    visibility = ["//visibility:public"],
)
